wasSuccessful

Checks if the status code is the same as the expected status code

Return

true if the status code is the same as the expected status code