Http Database Error Code
Contents |
code via httpstatuses.com/code or browse the list below. @ http status codes 401 Share on Twitter★ Star on GitHub⊕ Add to Pinboard http status codes 422 1×× Informational 100 Continue 101 Switching Protocols 102 Processing 2×× Success 200 OK
Http Status Code 418
201 Created 202 Accepted 203 Non-authoritative Information 204 No Content 205 Reset Content 206 Partial Content 207 Multi-Status 208 Already Reported 226
Http Status Codes 403
IM Used 3×× Redirection 300 Multiple Choices 301 Moved Permanently 302 Found 303 See Other 304 Not Modified 305 Use Proxy 307 Temporary Redirect 308 Permanent Redirect 4×× Client Error 400 Bad Request 401 Unauthorized 402 Payment Required 403 Forbidden 404 Not Found 405 Method http status checker Not Allowed 406 Not Acceptable 407 Proxy Authentication Required 408 Request Timeout 409 Conflict 410 Gone 411 Length Required 412 Precondition Failed 413 Payload Too Large 414 Request-URI Too Long 415 Unsupported Media Type 416 Requested Range Not Satisfiable 417 Expectation Failed 418 I'm a teapot 421 Misdirected Request 422 Unprocessable Entity 423 Locked 424 Failed Dependency 426 Upgrade Required 428 Precondition Required 429 Too Many Requests 431 Request Header Fields Too Large 444 Connection Closed Without Response 451 Unavailable For Legal Reasons 499 Client Closed Request 5×× Server Error 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Timeout 505 HTTP Version Not Supported 506 Variant Also Negotiates 507 Insufficient Storage 508 Loop Detected 510 Not Extended 511 Network Authentication Required 599 Network Connect Timeout Error
fix the error first. 5xx codes tell the client something happened on the server and their request by
Http Status Codes 302
itself was perfectly valid. The client can continue and try again with http status code 0 the request without modification. If your API is trying to save a record to a database and this custom http status codes fails because there is an error with the database, for instance, it's not reachable, or a constraint fails, use a 5xx code (preferably 500 - Internal server error). Always add https://httpstatuses.com/ a response to what went wrong. This response SHOULD be displayed to the client, or if it's an automated system, it can retry again with the same request. If you as a client receive a 500 status code, you can decide to try again (after a waiting-period, for a set number of times) to see if the server can handle the http://restcookbook.com/HTTP%20Methods/400-vs-500/ same request later on. Some status codes like 503 can return a retry-after header. This can be used to figure out how long a client SHOULD wait until a next attempt should be tried. Please enable JavaScript to view the comments powered by Disqus. Topics Basics (5 recipes) How do I let users log into my RESTful API? Caching your REST API How do I version my REST API? What is HATEOAS and why is it important? What is the code-on-demand constraint? HTTP Headers (1 recipe) Unsatisfied Accept-Language header HTTP Methods (5 recipes) How do I know which HTTP methods are supported When to use PUT or POST When to use the PATCH method What are idempotent and/or safe methods? When to send 4xx or 5xx codes Mediatypes (1 recipe) Is my API RESTful when I use JSON? Miscellaneous (3 recipes) What is the Richardson Maturity Model? Are REST and HTTP the same thing? Where to find REST presentations Resources (4 recipes) Custom content-types Paginating collections Using link-types in relations Asynchronous operations Maintained by Joshua Thijssen | Powered by Jek
that make connections all over the world. Join today Download https://www.drupal.org/node/298535 & Extend Drupal Core Distributions Modules Themes Issues Wrong https://www.sqlite.org/c3ref/c_abort.html HTTP status code if database connection fails Closed (fixed)Project:Drupal coreVersion:5.x-devComponent:database systemPriority:NormalCategory:Bug reportAssigned:UnassignedReporter:mkalkbrennerCreated:August 22, 2008 - 10:02Updated:September 29, 2008 - 06:21 Log in or register to update this issue If database connection problems occur, drupal shows an http status error page. For some specific problems the HTTP status code is correctly set to "503 Service Unavailable". But unfortunately some error pages are still returned with "200 OK". I attached a patch to fix this issue.Files: CommentFileSizeAuthor database_http_return_codes_on_connection_issues.patch3.96 KBmkalkbrenner Comments Comment #1 drumm CreditAttribution: drumm http status code commented September 15, 2008 at 6:15am Status: Needs review » Fixed Committed to 5.x. Log in or register to post comments Comment #2 Anonymous (not verified) CreditAttribution: Anonymous commented September 29, 2008 at 6:21am Status: Fixed » Closed (fixed) Automatically closed -- issue fixed for two weeks with no activity. Log in or register to post comments Add child issue, clone issue News itemsDrupal news Planet Drupal Association news Social media directory Security announcements Jobs Our communityCommunity Getting involved Services, Training & Hosting Groups & Meetups DrupalCon Code of conduct DocumentationDocumentation Drupal 8 docs Drupal 7 docs Developer docs api.drupal.org Drupal code baseDownload & Extend Drupal core Modules Themes Distributions Governance of communityAbout Web accessibility The Drupal Association About Drupal.org Terms of service Privacy policy Drupal is a registered trademark of Dries Buytaert.
result */ /* beginning-of-error-codes */ #define SQLITE_ERROR 1 /* SQL error or missing database */ #define SQLITE_INTERNAL 2 /* Internal logic error in SQLite */ #define SQLITE_PERM 3 /* Access permission denied */ #define SQLITE_ABORT 4 /* Callback routine requested an abort */ #define SQLITE_BUSY 5 /* The database file is locked */ #define SQLITE_LOCKED 6 /* A table in the database is locked */ #define SQLITE_NOMEM 7 /* A malloc() failed */ #define SQLITE_READONLY 8 /* Attempt to write a readonly database */ #define SQLITE_INTERRUPT 9 /* Operation terminated by sqlite3_interrupt()*/ #define SQLITE_IOERR 10 /* Some kind of disk I/O error occurred */ #define SQLITE_CORRUPT 11 /* The database disk image is malformed */ #define SQLITE_NOTFOUND 12 /* Unknown opcode in sqlite3_file_control() */ #define SQLITE_FULL 13 /* Insertion failed because database is full */ #define SQLITE_CANTOPEN 14 /* Unable to open the database file */ #define SQLITE_PROTOCOL 15 /* Database lock protocol error */ #define SQLITE_EMPTY 16 /* Database is empty */ #define SQLITE_SCHEMA 17 /* The database schema changed */ #define SQLITE_TOOBIG 18 /* String or BLOB exceeds size limit */ #define SQLITE_CONSTRAINT 19 /* Abort due to constraint violation */ #define SQLITE_MISMATCH 20 /* Data type mismatch */ #define SQLITE_MISUSE 21 /* Library used incorrectly */ #define SQLITE_NOLFS 22 /* Uses OS features not supported on host */ #define SQLITE_AUTH 23 /* Authorization denied */ #define SQLITE_FORMAT 24 /* Auxiliary database format error */ #define SQLITE_RANGE 25 /* 2nd parameter to sqlite3_bind out of range */ #define SQLITE_NOTADB 26 /* File opened that is not a database file */ #define SQLITE_NOTICE 27 /* Notifications from sqlite3_log() */ #define SQLITE_WARNING 28 /* Warnings from sqlite3_log() */ #define SQLITE_ROW 100 /* sqlite3_step() has another row ready */ #define SQLITE_DONE 101 /* sqlite3_step() has finished executing */ /* end-of-error-codes */ Many SQLite functions return an integer result code from the set shown here in order to indicate success or failure. New error codes may be added in future versions of SQLite. See also: extended result code definitions See also lists