mirror of https://github.com/apache/lucene.git
SOLR-249 -- adding error codes not used in solr, but useful for custom plugins.
UNAUTHORIZED( 401 ), FORBIDDEN( 403 ), git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@542737 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7495648e55
commit
6b2bf1b99c
|
@ -32,6 +32,8 @@ public class SolrException extends RuntimeException {
|
|||
*/
|
||||
public enum ErrorCode {
|
||||
BAD_REQUEST( 400 ),
|
||||
UNAUTHORIZED( 401 ),
|
||||
FORBIDDEN( 403 ),
|
||||
NOT_FOUND( 404 ),
|
||||
SERVER_ERROR( 500 ),
|
||||
SERVICE_UNAVAILABLE( 503 );
|
||||
|
|
Loading…
Reference in New Issue