Status codes are handled by the ResponseHandler.  You'll have to create a new response handler if you want to do things based on status code.