Skip to content

Commit

Permalink
fix: better error code on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
rodesai committed Mar 11, 2020
1 parent ce74cf8 commit 66bd340
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ public final class Errors {

public static final int ERROR_CODE_NOT_FOUND = toErrorCode(NOT_FOUND.getStatusCode());

public static final int ERROR_CODE_SERVER_SHUTTING_DOWN =
toErrorCode(SERVICE_UNAVAILABLE.getStatusCode());

public static final int ERROR_CODE_COMMAND_QUEUE_CATCHUP_TIMEOUT =
toErrorCode(SERVICE_UNAVAILABLE.getStatusCode()) + 1;

public static final int ERROR_CODE_SERVER_NOT_READY =
toErrorCode(SERVICE_UNAVAILABLE.getStatusCode()) + 2;

public static final int ERROR_CODE_SERVER_SHUTTING_DOWN =
toErrorCode(SERVICE_UNAVAILABLE.getStatusCode()) + 3;

public static final int ERROR_CODE_SERVER_ERROR =
toErrorCode(INTERNAL_SERVER_ERROR.getStatusCode());

Expand Down

0 comments on commit 66bd340

Please sign in to comment.