This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Response Codes
Ahmed Castro edited this page Sep 7, 2018
·
9 revisions
Response Codes indicates your last request result. They inform you if there was an error or everything worked fine. You can find them on your callbacks as part of the modio::Response object param.
Example:
modio_instance.emailRequest(email, [&](const modio::Response& response)
{
if (response.code == 200)
{
//Code sent!
}
else
{
//An error occurred
}
});
Most mod.io SDK response codes are standard HTTP just as the mod.io API.
Response | Code | Meaning |
---|---|---|
0 | Generic Error | Errors not listed above, checking the [[log file |
200 | OK | Your request was successful. |
201 | Created | Resource created, inspect Location header for newly created resource URL. |
204 | No Content | Request was successful and there was no data to be returned. |
400 | Bad request | Server cannot process the request due to malformed syntax or invalid request message framing. |
401 | Unauthorized | Your API key/access token is incorrect. |
403 | Forbidden | You do now have permission to perform the requested action. |
404 | Not Found | The resource requested could not be found. |
405 | Method Not Allowed | The method of your request is incorrect. |
406 | Not Acceptable | You supplied or requested an incorrect Content-Type. |
410 | Gone | The requested resource is no longer available. |
429 | Too Many Requests | You have made too many requests, inspect headers for reset time. |
500 | Internal Server Error | We had a problem with our server. Try again later. (rare) |
503 | Service Unavailable | We're temporarily offline for maintenance. Please try again later. (rare) |
- Home
- Table of Contents
- Getting Started
- SDK Methods
- Creators
- Editors
- Schemas
- modio::Avatar
- modio::Comment
- modio::Dependency
- modio::Download
- modio::Error
- modio::Filehash
- modio::Game
- modio::GameTagOption
- modio::Header
- modio::Icon
- modio::Image
- modio::InstalledMod
- modio::Logo
- modio::Media
- modio::MetadataKVP
- modio::Mod
- modio::ModEvent
- modio::Modfile
- modio::QueuedModDownload
- modio::QueuedModfileUpload
- modio::Rating
- modio::Response
- modio::Stats
- modio::Tag
- modio::User
- Debugging
- Constants
-
C Compatibility
- Methods
- Initialization, Process and Shutdown (C compatible)
- User Authentication (C compatible)
- Mods (C compatible)
- Modfiles (C compatible)
- Media (C compatible)
- Subscriptions (C compatible)
- Events (C compatible)
- Stats (C compatible)
- Tags (C compatible)
- Ratings (C compatible)
- Metadata KVP (C compatible)
- Dependencies (C compatible)
- Comments (C compatible)
- Reports (C compatible)
- Me (C compatible)
- Downloads (C compatible)
- Uploads (C compatible)
- Logs (C compatible)
- External Auth (C compatible)
- Configuration (C compatible)
- Creators
- Editors
- Schemas
- ModioAvatar
- ModioComment
- ModioDependency
- ModioDownload
- ModioError
- ModioFilehash
- ModioGame
- ModioGameTagOption
- ModioHeader
- ModioIcon
- ModioImage
- ModioInstalledMod
- ModioListNode
- ModioLogo
- ModioMedia
- ModioMetadataKVP
- ModioMod
- ModioModEvent
- ModioModfile
- ModioQueuedModDownload
- ModioQueuedModfileUpload
- ModioRating
- ModioResponse
- ModioStats
- ModioTag
- ModioUser
- Methods
- Building