return status code for GET and PUT if not 200 (OK)