HOOK-18: fixed error http-status (#5)
This commit is contained in:
parent
6e55b2fc57
commit
eaa9c3e0e4
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user