adding the error code for the responses