Automattic\WooCommerce\StoreApi\Routes\V1\Agentic
Error::service_unavailable
Create a service unavailable error.
Method of the class: Error{}
No Hooks.
Returns
Error.
Usage
$result = Error::service_unavailable( $code, $message, $param );
- $code(string) (required)
- Implementation-defined error code.
- $message(string) (required)
- Human-readable error message.
- $param(string|null)
- RFC 9535 JSONPath (optional).
Default:null
Error::service_unavailable() Error::service unavailable code WC 10.8.1
public static function service_unavailable( $code, $message, $param = null ) {
return new self( ErrorType::SERVICE_UNAVAILABLE, $code, $message, $param );
}