           .then -> done('Should not happen')
           .catch (error) ->
             expect(error.body).toEqual
-              statusCode: 500
               message: 'timeout'
               originalRequest:
                 options:

            .catch (error) ->
              expect(error.name).toBe 'HttpError'
              expect(error.body).toEqual
                statusCode: 500
                message: 'foo'
                originalRequest:
                  options: {}

          .catch (error) ->
            expect(error.name).toBe 'HttpError'
            expect(error.body).toEqual
              message: 'foo'
              originalRequest:
                options: {}
