[GH-ISSUE #98] Return appropriate responses based on form or JSON insertion #56

Closed
opened 2026-02-27 10:15:32 +03:00 by kerem · 2 comments
Owner

Originally created by @matze on GitHub (Jan 20, 2025).
Original GitHub issue: https://github.com/matze/wastebin/issues/98

Right now, all service errors will return an HTML page which is not that useful when POSTing JSON data. Split the routes and add appropriate handlers.

Originally created by @matze on GitHub (Jan 20, 2025). Original GitHub issue: https://github.com/matze/wastebin/issues/98 Right now, all service errors will return an HTML page which is not that useful when POSTing JSON data. Split the routes and add appropriate handlers.
kerem closed this issue 2026-02-27 10:15:32 +03:00
Author
Owner

@matze commented on GitHub (Jan 20, 2025):

But, it's not so easy without breaks because of the routing based on content type 🙈

<!-- gh-comment-id:2602782414 --> @matze commented on GitHub (Jan 20, 2025): But, it's not so easy without breaks because of the routing based on content type 🙈
Author
Owner

@matze commented on GitHub (Feb 16, 2025):

I was wrong. But I'll keep the break.

<!-- gh-comment-id:2661460567 --> @matze commented on GitHub (Feb 16, 2025): I was wrong. But I'll keep the break.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#56
No description provided.