HOOK-18: fixed error http-status (#5)

This commit is contained in:
Inal Arsanukaev 2017-04-24 19:31:58 +03:00 committed by GitHub
parent 6e55b2fc57
commit eaa9c3e0e4

View File

@ -44,9 +44,6 @@ public class MessageSender implements Runnable {
int statusCode = postSender.doPost(hook.getUrl(), messageJson, signature);
if (statusCode != HttpStatus.SC_OK) {
log.warn("Wrong status code " + statusCode + " from merchant. Message id = " + message.getId());
}
//TODO may be other error codes
if (statusCode >= HttpStatus.SC_INTERNAL_SERVER_ERROR) {
throw new PostRequestException("Internal server error for message id = " + message.getId());
}