Fix bug with ->send() return wrong response

In debug mode, ->send() will return an error on success, an vice versa. This fixes that.