Luw.ai API
  • Luw.ai API Documentation
    • Introduction
      • Getting Started
      • API Reference
      • Authentication
      • Error Handling
      • Rate Limit and Quotas
      • Get Process Results
      • Uploading Files
    • Generators
      • Interior AI
      • Exterior AI
      • Sketch AI
      • Magic Prompt AI
      • Mood Board AI
      • Magic Wand AI
      • Enhance AI
      • Remove Furniture AI
      • Segment AI
      • ArchiGPT
      • Motion AI
      • Video AI
      • Fluw AI
      • Fluw Vector AI
      • 3DGen AI
      • Pattern AI
      • Change Background AI
    • Knowledge
      • Design Styles
      • Video Styles
      • Interior Types
      • Exterior Types
      • Mood Board Types
      • Magic Wand Materials
      • What is Mask Image?
      • Precision Levels
    • Personas
      • Persona Endpoints
      • Training Endpoints
      • Like a Design
      • Persona Slots
    • Projects API
Powered by GitBook
On this page
  1. Luw.ai API Documentation
  2. Introduction

Error Handling

Basically, if status is getting false, you can expect these errors.

If there was an error at the request or response, API will return status: false also you can get details of the error with this parameters.

Common Error Responses

All endpoints can return the following error responses:

Authentication Error

{
  "status": false,
  "errors": {
    "auth": ["Wrong credentials or expired token"]
  }
}

Credit Limit Error

{
  "status": false,
  "insert_coin": true
}

Model-Specific Errors

Generation Errors

{
  "status": false,
  "error": "Something wrong with main server",
  "response": "Detailed error message"
}

Response Status Codes

Status Code
Description

200

Success

400

Bad Request - Invalid parameters

401

Unauthorized - Invalid or missing token

403

Forbidden - Insufficient permissions

404

Not Found - Resource doesn't exist

429

Too Many Requests - Rate limit exceeded

500

Internal Server Error

PreviousAuthenticationNextRate Limit and Quotas

Last updated 5 months ago