package com.mozu.api;

public class ApiException extends RuntimeException {
	/** Default Serial Version UID  */
	private static final long serialVersionUID = 1L;
	protected ApiError apiError = null;
	
	public ApiException(String message) {
		super(message);
	}
	
	public ApiException(String message, ApiError apiError) {
		super(message);
		this.apiError = apiError;
	}

	public ApiError getApiError() {
		return apiError;
	}

}

@@ -69,17 +69,20 @@
 ption %7B%0A
-%09
+    
 /** Defa
@@ -108,17 +108,20 @@
 UID  */%0A
-%09
+    
 private 
@@ -161,17 +161,20 @@
 D = 1L;%0A
-%09
+    
 protecte
@@ -205,73 +205,254 @@
 ll;%0A
-%09%0A%09public ApiException(String message) %7B%0A%09%09super(message);%0A%09%7D%0A%09%0A%09
+    protected int HttpStatusCode;%0A    %0A    public ApiException(String message) %7B%0A        super(message);%0A    %7D%0A    %0A    public ApiException(String message, ApiError apiError) %7B%0A        super(message);%0A        this.apiError = apiError;%0A    %7D%0A%0A    
 publ
@@ -500,22 +500,48 @@
 apiError
-) %7B%0A%09%09
+, int httpStatusCode) %7B%0A        
 super(me
@@ -548,18 +548,24 @@
 ssage);%0A
-%09%09
+        
 this.api
@@ -586,13 +586,204 @@
 or;%0A
-%09%7D%0A%0A%09
+        this.HttpStatusCode = httpStatusCode;%0A    %7D%0A%0A    public ApiException(String message, int httpStatusCode) %7B%0A        super(message);%0A        this.HttpStatusCode = httpStatusCode;%0A    %7D%0A%0A    
 publ
@@ -814,10 +814,16 @@
 ) %7B%0A
-%09%09
+        
 retu
@@ -839,10 +839,190 @@
 or;%0A
-%09%7D%0A%0A%7D%0A
+    %7D%0A%0A    public int getHttpStatusCode() %7B%0A        return HttpStatusCode;%0A    %7D%0A%0A    public void setHttpStatusCode(int httpStatusCode) %7B%0A        HttpStatusCode = httpStatusCode;%0A    %7D%0A%7D

Update the ApiException Class to accept status codes