status >= 200 && $this->status < 300; } public function toJsonResponse(): JsonResponse { return response()->json([ 'data' => $this->successful() ? $this->body : null, 'error' => $this->successful() ? null : $this->body, 'meta' => ['bazaar_status' => $this->status], ], $this->status); } }