Skip to content

Commit

Permalink
Don’t misuse the 406 response code
Browse files Browse the repository at this point in the history
  • Loading branch information
douglas-johnson committed Oct 23, 2023
1 parent 73f7c61 commit 062a2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/api/endpoints/class-coauthors-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function get_item( $request ) {
return new WP_Error(
'rest_unusable_data',
__( 'Sorry, an unusable response was produced.', 'co-authors-plus' ),
array( 'status' => 406 )
array( 'status' => 404 )
);
}

Expand Down

0 comments on commit 062a2d6

Please sign in to comment.