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).

483 questions
311
votes
21 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
  • 3,730
  • 6
  • 16
  • 19
64
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
  • 651
  • 1
  • 5
  • 3
35
votes
8 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
  • 1,766
  • 7
  • 28
  • 40
29
votes
8 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
  • 1,649
  • 1
  • 14
  • 31
28
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
  • 7,745
  • 5
  • 46
  • 107
28
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,496
  • 3
  • 25
  • 46
25
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
  • 45,276
  • 62
  • 194
  • 274
23
votes
3 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
  • 490
  • 1
  • 4
  • 16
23
votes
10 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
  • 6,575
  • 3
  • 41
  • 42
23
votes
5 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,144
  • 12
  • 46
  • 95
21
votes
3 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
  • 843
  • 2
  • 10
  • 20
20
votes
2 answers

Process finished with exit code -1073741571

I have a recursion function which is finding Eulerian Path. I do not think that the definition of the function is relevant (but if someone thinks so, I will paste it as well). The problem is that when I am running the function with a big graph, I…
Salvador Dali
  • 182,715
  • 129
  • 638
  • 708
20
votes
4 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,113
  • 10
  • 49
  • 81
18
votes
3 answers

Convenient way to show OpenCL error codes?

As per title, is there a convenient way to show readable OpenCL error codes? Being able to convert codes like '-1000' to a name would save a lot of time browsing through error codes.
Selmar
  • 662
  • 1
  • 5
  • 12
17
votes
1 answer

Understanding the facility in C++11

I am trying to use the system_error facility to handle errors in a library of mine. I am going to briefly discuss the structure of the library in case you find it helpful: The namespace of the library is called commons and under this I have another…
AstrOne
  • 2,831
  • 3
  • 25
  • 46
1
2 3
32 33