feat(core-api): harden signed urls and llm rate limits
This commit is contained in:
@@ -11,6 +11,9 @@ export function notFoundHandler(req, res) {
|
||||
|
||||
export function errorHandler(error, req, res, _next) {
|
||||
const envelope = toErrorEnvelope(error, req.requestId);
|
||||
if (envelope.status === 429 && envelope.body.details?.retryAfterSeconds) {
|
||||
res.set('Retry-After', String(envelope.body.details.retryAfterSeconds));
|
||||
}
|
||||
if (req.log) {
|
||||
req.log.error(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user