Skip to content

Commit

Permalink
Better response codes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neychok committed Oct 15, 2023
1 parent 1fdfd85 commit eaaf0f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/classes/handlers/class-users.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function handle( WP_REST_Request $request ): WP_REST_Response {
$email_extensions = get_option( 'dxsf_email_extensions' );

if ( empty( $email_extensions ) ) {
return new WP_REST_Response( 'Email Extensions not set', 200 );
return new WP_REST_Response( 'Email Extensions not set', 404 );
}

global $wpdb;
Expand Down

0 comments on commit eaaf0f9

Please sign in to comment.