{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:47:56Z","object_id":{"id":1296,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_base","title":"mod_base","uri":"https:\/\/zotonic.com\/id\/1296"},"seq":1000000}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"subject":{"objects":[{"created":"2026-09-09T13:47:52Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2564,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_backend_developer","title":"Backend developer","uri":"https:\/\/zotonic.com\/id\/2564"},"seq":2},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2626,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_controller","title":"Controller","uri":"https:\/\/zotonic.com\/id\/2626"},"seq":3},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2676,"is_a":["categorization","keyword","keyword_technology"],"name":"zotonic_topic_http","title":"HTTP","uri":"https:\/\/zotonic.com\/id\/2676"},"seq":4},{"created":"2026-09-09T13:47:52Z","object_id":{"id":2689,"is_a":["categorization","keyword","keyword_quality"],"name":"zotonic_topic_reliability","title":"Reliability","uri":"https:\/\/zotonic.com\/id\/2689"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1881,"is_a":["text","documentation","reference","controller"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1881"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_controller_controller_http_error","page_url":{"en":"https:\/\/zotonic.com\/docs\/1881\/controller_http_error","x-default":"https:\/\/zotonic.com\/docs\/1881\/controller_http_error"},"preview_url":null,"resource":{"version":3990,"pivot_location_lat":null,"title":"controller_http_error","is_authoritative":true,"body":"<p>This controller is called for serving http error pages.<\/p>\n<p>The controller will try to match the content type of the response with the expected content type for the request.<\/p>\n<p>For html responses it will render a page <code>error.code.tpl<\/code> where <em>code<\/em> is the error code for the response, for example\n404 or 500.<\/p>\n<p>In the template the following variables are available:<\/p>\n<p><code>error_code<\/code><\/p>\n<p>The http response error code, an integer like 500.<\/p>\n<p><code>error_erlang<\/code><\/p>\n<p>(Optional) In case of an Erlang error, the textual version of the error. Could be a short word or a longer descriptive error message.<\/p>\n<p><code>error_table<\/code><\/p>\n<p>(Optional) If an error stack was available then this is a list of table rows:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">[ IsTemplate, Module, Fun, Args, {File, Line} ]\n<\/code><\/pre>\n<p>Where <code>Module<\/code> is the template name if <code>IsTemplate<\/code> is <code>true<\/code>.<\/p>\n<p><code>error_dump<\/code><\/p>\n<p>(Optional) Some raw internal error information. This is given if there is an error but the error could not be translated into a erlang error and table.<\/p>\n<p>For JSON returns a simple error is returned, for example:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-json\">{ &quot;code&quot;: 404, &quot;status&quot;: &quot;Not Found&quot; }\n<\/code><\/pre>\n<p>For image results a transparent 1 pixel gif is served.<\/p>\n<p>For Javascript and css a text file with a comment is served.<\/p>\n<p>For plain text a simple error like <code>Not Found<\/code> is served.<\/p>","slug":"controller_http_error","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"b6f7e2309a80edb47752e1da1ac445e23f1d740a396b926d2cdc2deb263e107f","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":321,"is_a":["meta","category"],"name":"controller","title":"Controllers","uri":"https:\/\/test.zotonic.com\/id\/321"},"doc_source_path":"apps\/zotonic_mod_base\/src\/controllers\/controller_http_error.erl","publication_start":"2023-06-24T08:17:52Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_base\/src\/controllers\/controller_http_error.erl","pivot_location_lng":null,"doc_source_kind":"controller","name":"doc_controller_controller_http_error","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:42Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_base","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"b8c4b2ccdc223257f311968fbd17b2d66f0c4156\n","erlang_module":"controller_http_error","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-09-30T09:39:41Z","title_slug":"controller_http_error"},"uri":"https:\/\/zotonic.com\/id\/1881","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1881"}},"status":"ok"}