text: # coding=utf-8
  # --------------------------------------------------------------------------
  # Copyright (c) Microsoft Corporation. All rights reserved.
  # Licensed under the MIT License. See License.txt in the project root for license information.
  # Code generated by Microsoft (R) AutoRest Code Generator.
  # Changes may cause incorrect behavior and will be lost if the code is regenerated.
  # --------------------------------------------------------------------------
  from typing import TYPE_CHECKING
  
  from azure.core.rest import HttpRequest
  from msrest import Serializer
  
  if TYPE_CHECKING:
      # pylint: disable=unused-import,ungrouped-imports
      from typing import Any, Dict
  
  _SERIALIZER = Serializer()
  _SERIALIZER.client_side_validation = False
  
  # fmt: off
  
  def build_get_empty_error_request(
      **kwargs  # type: Any
  ):
      # type: (...) -> HttpRequest
      """Get empty error form server.
  
      See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder
      into your code flow.
  
      :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's
       `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to
       incorporate this response into your code flow.
      :rtype: ~azure.core.rest.HttpRequest
      """
  
      accept = "application/json"
      # Construct URL
      url = '/http/failure/emptybody/error'
  
      # Construct headers
      header_parameters = kwargs.pop("headers", {})  # type: Dict[str, Any]
      header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str')
  
      return HttpRequest(
          method="GET",
          url=url,
          headers=header_parameters,
          **kwargs
      )
  
  
  def build_get_no_model_error_request(
      **kwargs  # type: Any
  ):
      # type: (...) -> HttpRequest
      """Get empty error form server.
  
      See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder
      into your code flow.
  
      :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's
       `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to
       incorporate this response into your code flow.
      :rtype: ~azure.core.rest.HttpRequest
      """
  
      accept = "application/json"
      # Construct URL
      url = '/http/failure/nomodel/error'
  
      # Construct headers
      header_parameters = kwargs.pop("headers", {})  # type: Dict[str, Any]
      header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str')
  
      return HttpRequest(
          method="GET",
          url=url,
          headers=header_parameters,
          **kwargs
      )
  
  
  def build_get_no_model_empty_request(
      **kwargs  # type: Any
  ):
      # type: (...) -> HttpRequest
      """Get empty response from server.
  
      See https://aka.ms/azsdk/python/protocol/quickstart for how to incorporate this request builder
      into your code flow.
  
      :return: Returns an :class:`~azure.core.rest.HttpRequest` that you will pass to the client's
       `send_request` method. See https://aka.ms/azsdk/python/protocol/quickstart for how to
       incorporate this response into your code flow.
      :rtype: ~azure.core.rest.HttpRequest
      """
  
      accept = "application/json"
      # Construct URL
      url = '/http/failure/nomodel/empty'
  
      # Construct headers
      header_parameters = kwargs.pop("headers", {})  # type: Dict[str, Any]
      header_parameters['Accept'] = _SERIALIZER.header("accept", accept, 'str')
  
      return HttpRequest(
          method="GET",
          url=url,
          headers=header_parameters,
          **kwargs
      )
  