public function get_item( $request ) {
		$obj = get_post_status_object( $request['status'] );
		if ( empty( $obj ) ) {
			return new WP_Error( 'rest_status_invalid', __( 'Invalid resource.' ), array( 'status' => 404 ) );
		}
		$data = $this->prepare_item_for_response( $obj, $request );
		return rest_ensure_response( $data );
	}
public function get_item( $request ) {
		$obj = get_post_status_object( $request['status'] );
		if ( empty( $obj ) ) {
			return new WP_Error( 'rest_status_invalid', __( 'Invalid resource.' ), array( 'status' => 404 ) );
		}
		$data = $this->prepare_item_for_response( $obj, $request );
		return rest_ensure_response( $data );
	}
public function get_item ( $ request ) { $ obj = get_post_status_object ( $ request [ 'status' ] ) ; if ( empty ( $ obj ) ) { return new WP_Error ( 'rest_status_invalid' , __ ( 'Invalid resource.' ) , array ( 'status' => 404 ) ) ; } $ data = $ this -> prepare_item_for_response ( $ obj , $ request ) ; return rest_ensure_response ( $ data ) ; }
Get a specific post status

@param WP_REST_Request $request
@return array|WP_Error
Get a specific post status