Update the ApiException Class to accept status codes