http code 204 was coming out as 500

When trying to send back $this->response(null, 204) the code would
crash when handling the empty data.