Commits

rado_h  committed 4c22a26 Draft

Change error status code on authentication failure

  • Participants
  • Parent commits 29d8431
  • Branches v0.2

Comments (0)

Files changed (1)

File gridfs/mod_gridfs.cpp

 					if (!ok) {
 						connection->done();
 						ap_log_rerror(APLOG_MARK, APLOG_CRIT, 0, request, ("mod_gridfs: " + errmsg).c_str());
-						return HTTP_NOT_FOUND;
+						return HTTP_INTERNAL_SERVER_ERROR;
 					}
 				}
 				const mongo::GridFS gridfs(cc, *config->database);