diff --git a/includes/class-http.php b/includes/class-http.php index e243997..35003b8 100644 --- a/includes/class-http.php +++ b/includes/class-http.php @@ -52,7 +52,7 @@ class Http { $response = \wp_safe_remote_post( $url, $args ); $code = \wp_remote_retrieve_response_code( $response ); - if ( 400 <= $code && 500 >= $code ) { + if ( $code <= 400 ) { $response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) ); } @@ -100,7 +100,7 @@ class Http { $response = \wp_safe_remote_get( $url, $args ); $code = \wp_remote_retrieve_response_code( $response ); - if ( 400 <= $code && 500 >= $code ) { + if ( $code <= 400 ) { $response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) ); }