-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Milestone
Description
Describe the problem
One side-note from #7956: invalid(422, {...})
is natural, but invalid(500, {...})
— which you need to do in order to show inline error UI along with repopulated form values — feels a bit weird. The error isn't that the data was invalid, it's that something went wrong on the back end.
Describe the proposed solution
Rename it to something that covers both 4xx and 5xx errors:
fail(status, data)
failed(status, data)
nope(status, data)
Suggestions welcome. (Note that we can't return error(status, data)
because data
must conform to App.Error
in that case.
Alternatives considered
No response
Importance
nice to have
Additional Information
No response