Page Contents
Home > @loopback/testlab > createUnexpectedHttpErrorLogger
createUnexpectedHttpErrorLogger() function
Creates a Logger that logs an Error if the HTTP status code is not expected
Signature:
export declare function createUnexpectedHttpErrorLogger(expectedStatusCode?: number): LogError;
Parameters
| Parameter | Type | Description |
|---|---|---|
| expectedStatusCode | number | HTTP status code that is expected |
Returns:
LogError