Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor response.go for clearer error reporting
* Consolidated repetitive logic into a single sendJSON function. * Used sendJsonObject to handle all the cases of sending a JSON object with HTTP status code checks. * Reduced code redundancy across all the similar functions by grouping logic where applicable.
- Loading branch information