camper/pkg
jordi fita mas 8b5a45299e Return HTTP 404 response for non-active campsite’s public pages
At first i thought i had to return HTTP 410 gone in this case, but
HTTP Semantics RFC[0] says that “The 410 (Gone) status code indicates
that […] this condition is likely to be permanent. If the origin server
does not know […] whether or not the condition is permanent, the status
code 404 (Not Found) ought to be used instead.”

A non-active campsite type does not mean “deleted”, but rather
temporarily disabled, thus a 404 is the appropriate code.

[0] https://www.rfc-editor.org/rfc/rfc9110#status.410
2023-08-14 12:07:51 +02:00
..
app Go back to WYSIWYG for campsite types’ description and remove pages 2023-08-12 05:41:34 +02:00
auth Move the locales parameter inside Company struct. 2023-08-07 10:53:42 +02:00
campsite Return HTTP 404 response for non-active campsite’s public pages 2023-08-14 12:07:51 +02:00
database Add the company’s slug in the URL before company-dependent handlers 2023-07-31 18:51:50 +02:00
form Add the Active field to the campsite type’s edit form and function 2023-08-14 11:43:58 +02:00
http Add the language switched to the public layout 2023-08-06 05:53:52 +02:00
locale Add the language switched to the public layout 2023-08-06 05:53:52 +02:00
template Replace Gutenberg with GrapesJS for pages 2023-08-11 02:40:02 +02:00
uuid Add the company’s slug in the URL before company-dependent handlers 2023-07-31 18:51:50 +02:00