Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
Update HTTP status check from 403 to 401 when launching is restricted…
Browse files Browse the repository at this point in the history
… to authenticated users
  • Loading branch information
oskosk committed Apr 23, 2020
1 parent 8ce0feb commit 0e55922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jurassicninja.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function jurassicNinjaApi() {
if ( response.status === 503 ) {
throw new Error( 'Site launching is turned off right now' );
}
if ( response.status === 403 ) {
if ( response.status === 401 ) {
throw new Error( 'Launching sites is currently restricted to authenticated users' );
}
// 400 status are custom WP_Error when features are requested in a bad way
Expand Down

0 comments on commit 0e55922

Please sign in to comment.