{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-rest-api/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"HTTP Status Codes","description":"Developer documentation for the WHMCS API — the","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"http-status-codes","__idx":0},"children":["HTTP Status Codes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["WHMCS API uses standard HTTP status codes in the response header:"]},{"$$mdtype":"Tag","name":"table","attributes":{},"children":[{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{},"children":["Code"]},{"$$mdtype":"Tag","name":"th","attributes":{},"children":["Description"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["200"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Success"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["202"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You must provide a second authentication factor to finish login."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["401"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Unauthorized"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Usually, this indicates that the username or password is not valid or the system denied the requested access."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["403"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Forbidden"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Usually, this indicates that the IP address is banned due to too many login failures or it is not whitelisted (when WHMCS API IP restriction is enabled)."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["404"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Not Found"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["412"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Precondition Fail"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Usually, this indicates that Two-Factor Authentication is required or the provided Two-Factor Authentication token is invalid."]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["422"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Invalid input"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["500"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Internal Server Error"]}]}]}]}]},"headings":[{"value":"HTTP Status Codes","id":"http-status-codes","depth":1}],"frontmatter":{"title":"HTTP Status Codes","seo":{"title":"HTTP Status Codes"}},"lastModified":"2026-08-03T20:15:25.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/rest-api/http-status-codes","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}