Handler Table
The handler table is a table that shows all the handlers in the project and control them.
Set Response Behavior

Control how your mocked APIs respond using the behavior selector. Each handler can be configured with the following response types:
Available Behaviors
Tip: Use these behaviors to test how your application handles different API response scenarios.
Control
-
default
- Executes the original handler logic you’ve defined
- Uses your custom mock implementation
-
disable mock ^2.3.0
- Disables the mock for the handler
- The handler will be sent to the actual endpoint.
-
delay
- Simulates an infinite loading state
- Request remains pending indefinitely
-
return null
- Responds with a null value
- Useful for testing null handling
Error
-
network Error
- Simulates network failure scenarios
- Triggers error handling in your application
-
4xx Error
- Returns client error status codes
- Simulates client-side error responses
-
5xx Error
- Returns server error status codes
- Simulates server-side failure scenarios
Reset

You can reset all handlers to their initial state using the Reset Dev Tool
button:
- All response behaviors will be set back to Default
- All handlers will be Enabled for mocking
Last updated on