rest-vir - v1.0.0
    Preparing search index...

    Type Alias HandledOutput

    HandledOutput:
        | {
            body?: never;
            error?: Error;
            headers?: Readonly<OutgoingHttpHeaders>;
            statusCode?: never;
        }
        | {
            body?: unknown;
            error?: Error;
            headers?: Readonly<OutgoingHttpHeaders>;
            statusCode: HttpStatus;
        }
        | undefined

    Output from EndpointHandler.

    Type declaration

    • {
          body?: never;
          error?: Error;
          headers?: Readonly<OutgoingHttpHeaders>;
          statusCode?: never;
      }
    • {
          body?: unknown;
          error?: Error;
          headers?: Readonly<OutgoingHttpHeaders>;
          statusCode: HttpStatus;
      }
      • Optionalbody?: unknown
      • Optionalerror?: Error
      • Optionalheaders?: Readonly<OutgoingHttpHeaders>
      • statusCode: HttpStatus

        If this is set, then the response is sent with this status code and the given body (if any).

    • undefined

      A value of undefined indicates that the response should not be sent yet.