Updated the condition to ensure JSON responses are rendered for both 'api/*' and 'api' requests.
- Added rate limiting for web and API requests. - Introduced custom error handling for "Too Many Requests" response. - Created view for "Too Many Requests" error documentation.