FalEx.Response (fal_ex v0.1.0)

View Source

Response handling and error types for FalEx client.

Summary

Functions

Creates an API error from response data.

Checks if a queue status indicates completion.

Checks if a response is a queue status response.

Result response handler that wraps the response data.

Creates a validation error from response data.

Functions

api_error(message, status, body)

Creates an API error from response data.

completed_queue_status?(arg1)

Checks if a queue status indicates completion.

queue_status?(arg1)

Checks if a response is a queue status response.

result_response_handler(env)

Result response handler that wraps the response data.

This is the default response handler that formats successful responses into the standard result format.

validation_error(body)

Creates a validation error from response data.