response code for api in laravel code example
Example: laravel dingo api response
return $this->response->noContent();
return $this->response->created($location);
return $this->response->created();
return $this->response->error('This is an error.', 404);
return $this->response->errorNotFound();
return $this->response->errorBadRequest();
return $this->response->errorForbidden();
return $this->response->errorInternal();
return $this->response->errorUnauthorized();