Go to file
jordi fita mas 0b74c7a91c Instruct htmx that HTTP 422 is not a “fatal error”
I use HTTP 422 to signal that a form was submitted with bad data,
which i believe is the correct status code: “indicates that the server
understands the content type of the request content […], and the syntax
of the request content is correct, but it was unable to process the
contained instructions.”[0]

htmx, however, treats all 4xx status codes as error and, by default,
does not swap the target with the response’s content.  Until i found out
that i could change that behaviour, i worked around this limitation by
returning HTTP 200 for htmx requests, but it is a waste of time given
that htmx _can_ accept HTTP 422 as a non-error.

[0]: https://www.rfc-editor.org/rfc/rfc9110#name-422-unprocessable-content
2024-08-27 11:07:39 +02:00
cmd/numerus Prefill login form when using the demo database 2024-01-20 20:23:26 +01:00
debian Debian: copy de modified build.go to the src folder in _build 2024-01-19 23:54:32 +01:00
demo Remove status parameter from edit_expense and forms 2024-08-26 10:42:38 +02:00
deploy Remove status parameter from edit_expense and forms 2024-08-26 10:42:38 +02:00
pkg Instruct htmx that HTTP 422 is not a “fatal error” 2024-08-27 11:07:39 +02:00
po Swap payments/collections and downloads in invoice/expenses index 2024-08-26 14:47:22 +02:00
revert Remove status parameter from edit_expense and forms 2024-08-26 10:42:38 +02:00
test Remove status parameter from edit_expense and forms 2024-08-26 10:42:38 +02:00
verify Remove status parameter from edit_expense and forms 2024-08-26 10:42:38 +02:00
web Instruct htmx that HTTP 422 is not a “fatal error” 2024-08-27 11:07:39 +02:00
.gitignore Ignore IntelliJ’s project files 2023-01-30 16:42:15 +01:00
COPYING Rename LICENSE to COPYING 2023-01-15 04:08:35 +01:00
Makefile Rename extension of templates to .gohtml 2023-01-30 16:48:21 +01:00
go.mod Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
go.sum Add the customer name to the invoice’s PDF file name 2023-07-07 11:34:34 +02:00
guix.scm Add Guix file 2024-02-06 17:43:05 +01:00
sqitch.conf Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
sqitch.plan Remove status parameter from edit_expense and forms 2024-08-26 10:42:38 +02:00