// Copyright 2014, Kevin Ko <kevin@faveset.com>

package com.faveset.khttp;

class InvalidRequestException extends Exception {
    public InvalidRequestException(String reason) {
        super(reason);
    }
}

@@ -120,16 +120,45 @@
 ption %7B%0A
+    private int mErrorCode;%0A%0A
     publ
@@ -229,11 +229,266 @@
 );%0A    %7D
+%0A%0A    public InvalidRequestException(String reason, int errorCode) %7B%0A        super(reason);%0A        mErrorCode = errorCode;%0A    %7D%0A%0A    /**%0A     * @return The error code or 0 if none.%0A     */%0A    public int getErrorCode() %7B%0A        return mErrorCode;%0A    %7D
 %0A%7D%0A

Add http error code to constructor.