⚡
Fluxpoint API
WebsiteDiscord Server
  • ℹ️Information
  • 📋Changelogs
  • Reviews
  • 📦Library
    • #️⃣C#
    • ☕JavaScript
    • 👻BotGhost
    • 💡Http Example
  • ⚡Client
    • 🧰Lib Developers
    • 📦Responses
    • ⚠️Error Codes
  • 🔗Endpoints
    • Test
    • Misc
    • Utility
    • Color
    • Convert
    • List
    • Image Gen
      • Templates
      • Custom Image
    • Minecraft
    • Sfw Anime Images
    • Sfw Anime Gifs
    • Meme Images
    • Animal Images
    • Nsfw
      • Nsfw Anime Images
      • Nsfw Anime Gifs
Powered by GitBook
On this page
  • Default Response
  • Example
  1. Client

Responses

List of responses sent back by the API

PreviousLib DevelopersNextError Codes

Last updated 2 years ago

Default Response

All responses will include either a success or an error.

Success

{
    "success": true,
    "code": 200,
    "message": ""
}

Error

{
    "success": false,
    "code": 404,
    "message": "Some error message here"
}

All requests to the API will always have these 3 fields including the additional data for each endpoint you use.

Example

This will be different for certain languages but should be the standard to use.

The base class for all responses

{
    "success": true,
    "code": 200,
    "message": "",
    "r": 0,
    "g": 0,
    "b": 0,
    "name": "White",
    "hex": "#ffffff"
}

Other responses should inherit or add the default response of success, code and message along with the endpoint data. It should look like

⚡
📦