You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Input validation is The most important thing on a web-app. For example, if a login attempt fails, 401 Unathorized should be the right status code. Returning something like 200 for a failed login attempt is dubious. Like-wise, 422 is a more appropriate response to an invalid form submission than 200. Additionally, following HTMX philosophy, it makes sense to include the error message in the body of the request as HyperMedia.
But HTMX with its current defaults requires a 200 in order to allow swapping.
The text was updated successfully, but these errors were encountered:
This one:
https://htmx.org/extensions/response-targets/
Why?
Input validation is The most important thing on a web-app. For example, if a login attempt fails,
401 Unathorized
should be the right status code. Returning something like200
for a failed login attempt is dubious. Like-wise,422
is a more appropriate response to an invalid form submission than200
. Additionally, following HTMX philosophy, it makes sense to include the error message in thebody
of the request as HyperMedia.But HTMX with its current defaults requires a
200
in order to allow swapping.The text was updated successfully, but these errors were encountered: