wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php:196Retrieves a specific post status.
$requestWP_REST_RequestWP_REST_Response|WP_Error public function get_item( $request ) { $obj = get_post_status_object( $request['status'] ); if ( empty( $obj ) ) { return new WP_Error( 'rest_status_invalid', __( 'Invalid status.' ), array( 'status' => 404 ) ); } $data = $this->prepare_item_for_response( $obj, $request ); return rest_ensure_response( $data ); }Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/rest-api/endpoints/class-wp-rest-post-statuses-controller.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.