Questions tagged [error-code]

An error code is a value returned to provide context on why an error occurred. Error codes are often provided in lieu of an error message for the sake of brevity or consistency.

Error codes are often provided in contexts where providing specific error messages would be costly, too varied, or redundant. Tables of error codes are often provided with the full text of the error messages so that users can find a full explanation of the cause of the error.

Error code can be easily programmatically handled, unlike error messages, which can be unpredictable or sometime impossible to rely on (for example, when they are translated, and thus different for each language).

548 questions
642
votes
11 answers

PHP expects T_PAAMAYIM_NEKUDOTAYIM?

Does anyone have a T_PAAMAYIM_NEKUDOTAYIM?
Peter Turner
  • 11,199
  • 10
  • 68
  • 109
343
votes
25 answers

Login to Microsoft SQL Server Error: 18456

I am getting this error while trying to connect to the SQL Server. Microsoft SQL Server Error: 18456 Can anybody tell me what the error code means?
merazuu
  • 4,118
  • 6
  • 18
  • 19
73
votes
10 answers

How can I get php to return 500 upon encountering a fatal exception?

PHP fatal errors come back as status code 200 to the HTTP client. How can I make it return a status code 500 (Internal server error)?
Mike
  • 741
  • 1
  • 5
  • 3
42
votes
10 answers

Error Code: 1062. Duplicate entry '1' for key 'PRIMARY'

I have a problem on this error message, when i try this: INSERT INTO `PROGETTO`.`UFFICIO-INFORMAZIONI` (`ID`, `viale`, `num_civico`, `data_apertura`, `data_chiusura`, `orario_apertura`, `orario_chiusura`, `telefono`, `mail`, `web`, `Nome-paese`,…
FrancescoN
  • 2,146
  • 12
  • 34
  • 45
36
votes
11 answers

Process finished with exit code -1073741515 (0xC0000135)

I'm running a python script and it used to work (it even does on my other laptop right now) but not on my current computer - I just get the error code: Process finished with exit code -1073741515 (0xC0000135) I don't get any other results - not…
Cribber
  • 2,513
  • 2
  • 21
  • 60
34
votes
1 answer

Use cases for std::error_code

Lately I've been converting some libraries to use the facilities in C++11. I'm having difficulty understanding the use cases for std::error_code vs. std::error_condition. Note, I understand the difference - there are many questions…
Siler
  • 8,976
  • 11
  • 64
  • 124
32
votes
1 answer

Comprehensive list of rsync error codes

I'm writing a script that does daily snapshots of users' home directories. First I do a dry run using: rsync -azvrn --out-format="%M %f" source/dir dest/dir and then the actual rsync operation (by removing the -n option). I'm trying to parse the…
seebiscuit
  • 4,905
  • 5
  • 31
  • 47
31
votes
4 answers

Error in na.fail.default: missing values in object - but no missing values

I am trying to run a lme model with these…
InverniE
  • 598
  • 1
  • 7
  • 21
31
votes
2 answers

Process finished with exit code -1073741571

I'm trying to process a large graph using a recursive algorithm. Due to the deep recursion, I encountered the problem described at Python: Maximum recursion depth exceeded. So, I tried increasing the limit on recursion depth, like so: import…
Salvador Dali
  • 214,103
  • 147
  • 703
  • 753
30
votes
5 answers

What HTTP error code to return for name already taken?

I'm doing an AJAX call to set the username. If the username is already taken what HTTP code should I return?
Ryan
  • 5,883
  • 13
  • 56
  • 93
28
votes
3 answers

Where are the Spring MVC validation error codes resolved?

I am attempting to write validators under the Spring MVC framework, but there is a glaring omission in the documentation. When calling passing an error to the Errors object most of the methods expect an String parameter named errorCode. These…
James McMahon
  • 48,506
  • 64
  • 207
  • 283
27
votes
11 answers

When is it appropriate to use error codes?

In languages that support exception objects (Java, C#), when is it appropriate to use error codes? Is the use of error codes ever appropriate in typical enterprise applications? Many well-known software systems employ error codes (and a…
Jim Hurne
  • 7,187
  • 4
  • 44
  • 44
25
votes
6 answers

REST API error code 500 handling

We are building a new REST API. I was arguing that error code 500 (Internal Server Error) should never be returned. Now, of course if you know the client's params are wrong or something you have everything under control and can return some…
transient_loop
  • 5,984
  • 15
  • 58
  • 117
24
votes
1 answer

Custom error code class range in PostgreSql?

The PostgreSql documentation does not seem to mention a special class range for custom error codes. Has any been defined or is there an unofficial agreement on a specific class range?
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
22
votes
4 answers

Is it possible to convert a boost::system::error_code to a std:error_code?

I want to replace external libraries (like boost) as much as possible with their equivalents in standard C++ if they exist and it is possible, to minimize dependencies, therefore I wonder if there exists a safe way to convert…
Fredrik
  • 893
  • 2
  • 10
  • 20
1
2 3
36 37