{"record":{"id":"5891206394277716","repo":"firefly-iii/firefly-iii","slug":"sorry-accept-header-s-is-not-something-this-en","errorCode":null,"errorMessage":"Sorry, Accept header \"%s\" is not something this endpoint can provide.","messagePattern":"Sorry, Accept header \"(.+?)\" is not something this endpoint can provide\\.","errorType":"http","errorClass":"BadHttpHeaderException","httpStatus":406,"severity":"error","filePath":"app/Api/V1/Controllers/Controller.php","lineNumber":96,"sourceCode":"\n    /**\n     * Controller constructor.\n     */\n    public function __construct()\n    {\n        // get global parameters\n        $this->middleware(function ($request, $next) {\n            $this->parameters = $this->getParameters();\n            if (auth()->check()) {\n                $language               = Steam::getLanguage();\n                $this->convertToPrimary = Amount::convertToPrimary();\n                $this->primaryCurrency  = Amount::getPrimaryCurrency();\n                app()->setLocale($language);\n            }\n\n            // filter down what this endpoint accepts.\n            if (!$request->accepts($this->accepts)) {\n                throw new BadHttpHeaderException(sprintf('Sorry, Accept header \"%s\" is not something this endpoint can provide.', $request->header('Accept')));\n            }\n\n            return $next($request);\n        });\n    }\n\n    /**\n     * Method to help build URL's.\n     */\n    final protected function buildParams(): string\n    {\n        $return = '?';\n        $params = [];\n        foreach ($this->parameters as $key => $value) {\n            if ('page' === $key) {\n                continue;\n            }\n            if ($value instanceof Carbon) {","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/firefly-iii/firefly-iii/blob/fd8791d08d4d9e6467519a78048cd038e26b8878/app/Api/V1/Controllers/Controller.php#L78-L114","documentation":"Error \"Sorry, Accept header \"%s\" is not something this endpoint can provide.\" thrown in firefly-iii/firefly-iii.","triggerScenarios":"Thrown at app/Api/V1/Controllers/Controller.php:96 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fd8791d08d4d9e6467519a78048cd038e26b8878","analyzedAt":"2026-08-17T02:14:53.848Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}