Skip to content

feat: add forbidden/unauthorized response helpers and usage#197

Merged
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
shogun444:feat/forbidden-helper-189
Apr 27, 2026
Merged

feat: add forbidden/unauthorized response helpers and usage#197
Chucks1093 merged 1 commit into
accesslayerorg:mainfrom
shogun444:feat/forbidden-helper-189

Conversation

@shogun444
Copy link
Copy Markdown
Contributor

Summary

Adds standardized helpers for forbidden and unauthorized responses and applies them to admin access checks.

Closes #189

Changes

  • Enhance sendForbidden and sendUnauthorized to support optional details
  • Use sendForbidden in admin controller for consistent 403 handling
  • Add unit tests for response helpers

Testing

  • pnpm lint
  • pnpm build
  • pnpm jest src/utils/test/api-response.utils.test.ts

Notes

  • Scoped to response helpers and admin access checks only
  • No unrelated file changes included

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

@shogun444 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit d21239e into accesslayerorg:main Apr 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add standardized forbidden response helper for gated routes

2 participants