KamoCRM

Return 404 for a missing org instead of 200 with empty body

FixSecurityService
Shipped
1 ஜூலை, 2026 அன்று 2:51 AM UTC
Author
Kamo
Commit
a93428e

getOrganizationById returned a bare null, which Spring serialized to HTTP 200 with an empty body; clients calling response.json() then threw 'Unexpected end of JSON input'. Return a proper 404 when not found.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing