@euk-labs/nest-beltz
Version:
13 lines (12 loc) • 1.02 kB
TypeScript
import { ApiResponseOptions } from '@nestjs/swagger';
/**
* The HTTP `401 Unauthorized` client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.
* This status is sent with a [WWW-Authenticate](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate) header that contains information on how to authorize correctly.
*
* This status is similar to [403](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403), but in this case, authentication is possible.
*
* @see [401 Unauthorized](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401)
* @param options - These are the same types as ApiResponse
*/
export declare function UnauthorizedResponse(options?: ApiResponseOptions): <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;
//# sourceMappingURL=unauthorized-response.decorator.d.ts.map