Title: wp-includes/rest-api/class-wp-rest-response.php | Developer.WordPress.org

---

# File: wp-includes/rest-api/class-wp-rest-response.php

 * hook[rest_response_link_curies](https://developer.wordpress.org/reference/hooks/rest_response_link_curies/)
 * Filters extra CURIEs available on REST API responses.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/rest_response_link_curies/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/rest_response_link_curies/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:289](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L289-L289)
 * method[WP_REST_Response::get_curies()](https://developer.wordpress.org/reference/classes/wp_rest_response/get_curies/)
 * Retrieves the CURIEs (compact URIs) used for relations.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/get_curies/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_rest_response/get_curies/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:255](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L255-L292)
 * method[WP_REST_Response::get_matched_handler()](https://developer.wordpress.org/reference/classes/wp_rest_response/get_matched_handler/)
 * Retrieves the handler that was used to generate the response.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/get_matched_handler/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/get_matched_handler/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:192](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L192-L194)
 * method[WP_REST_Response::set_matched_handler()](https://developer.wordpress.org/reference/classes/wp_rest_response/set_matched_handler/)
 * Sets the handler that was responsible for generating the response.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/set_matched_handler/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/set_matched_handler/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:203](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L203-L205)
 * method[WP_REST_Response::is_error()](https://developer.wordpress.org/reference/classes/wp_rest_response/is_error/)
 * Checks if the response is an error, i.e. >= 400 response code.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_rest_response/is_error/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/is_error/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:214](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L214-L216)
 * method[WP_REST_Response::as_error()](https://developer.wordpress.org/reference/classes/wp_rest_response/as_error/)
 * Retrieves a WP_Error object from the response.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/as_error/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/as_error/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:225](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L225-L246)
 * method[WP_REST_Response::get_matched_route()](https://developer.wordpress.org/reference/classes/wp_rest_response/get_matched_route/)
 * Retrieves the route that was used.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/get_matched_route/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/get_matched_route/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:170](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L170-L172)
 * method[WP_REST_Response::set_matched_route()](https://developer.wordpress.org/reference/classes/wp_rest_response/set_matched_route/)
 * Sets the route (regex for path) that caused the response.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/set_matched_route/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/set_matched_route/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:181](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L181-L183)
 * class[WP_REST_Response](https://developer.wordpress.org/reference/classes/wp_rest_response/)
 * Core class used to implement a REST response object.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_rest_response/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:17](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L17-L293)
 * method[WP_REST_Response::add_link()](https://developer.wordpress.org/reference/classes/wp_rest_response/add_link/)
 * Adds a link to the response.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_rest_response/add_link/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/add_link/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:58](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L58-L72)
 * method[WP_REST_Response::remove_link()](https://developer.wordpress.org/reference/classes/wp_rest_response/remove_link/)
 * Removes a link from the response.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/remove_link/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_rest_response/remove_link/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:83](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L83-L97)
 * method[WP_REST_Response::add_links()](https://developer.wordpress.org/reference/classes/wp_rest_response/add_links/)
 * Adds multiple links to the response.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/add_links/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_rest_response/add_links/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:111](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L111-L122)
 * method[WP_REST_Response::get_links()](https://developer.wordpress.org/reference/classes/wp_rest_response/get_links/)
 * Retrieves links for the response.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/get_links/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/get_links/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:131](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L131-L133)
 * method[WP_REST_Response::link_header()](https://developer.wordpress.org/reference/classes/wp_rest_response/link_header/)
 * Sets a single link header.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/link_header/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_response/link_header/#uses)
   | Source: [wp-includes/rest-api/class-wp-rest-response.php:150](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/rest-api/class-wp-rest-response.php#L150-L161)