Skip to content

Error Reference

Massimo provides detailed error information to help you handle failures gracefully. This guide covers all error types and how to handle them.

Massimo clients use specific error codes to identify different failure scenarios:

Error CodeDescriptionCommon Causes
PLT_MASSIMO_OPTIONS_URL_REQUIREDURL is required in client optionsMissing or undefined URL when creating client
PLT_MASSIMO_FORM_DATA_REQUIREDFormData object requiredMultipart/form-data request without FormData
PLT_MASSIMO_MISSING_PARAMS_REQUIREDMissing required path parameterURL path parameter not provided
PLT_MASSIMO_WRONG_OPTS_TYPEWrong option type providedInvalid type for client configuration option
PLT_MASSIMO_INVALID_RESPONSE_SCHEMAResponse validation failedResponse missing required status code
PLT_MASSIMO_INVALID_CONTENT_TYPEInvalid content type in responseServer returned unexpected content type
PLT_MASSIMO_INVALID_RESPONSE_FORMATResponse doesn’t match schemaResponse body doesn’t match OpenAPI schema
PLT_MASSIMO_UNEXPECTED_CALL_FAILUREUnexpected request failureNetwork error or server unavailable