fix(api_request_test): test for error on bad body
fix(endpoints_server): always return after http.Error

In a few different cases return wasn't called after http.Error which
meant that the code kept flowing. Avoid doing this.
fix(api_request): return nil apiRequest on error

If there is an error make sure the apiRequest doesn't get passed
through.