Check the response for the correct code.