Add the error response codes to the API