Error code cleanup. Changing: SolrException( 1, ... ) to SolrException( 500, ... ) SolrException( 2, ... ) to SolrException( 400, ... ) Now, the only status codes set in SolrExceptions are valid HTTP status codes: 500 400 503 404