org.apache.tapestry5.services

## Class HttpError

- java.lang.Object
- - org.apache.tapestry5.services.HttpError

-     public final class HttpError
      extends java.lang.Object

  An event handler method may return an instance of this class to send an error response to the client.
  Since:
    5.2.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HttpError(int statusCode, java.lang.String message)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getMessage()` Returns error message.
    `int` | `getStatusCode()` Returns the error status code.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### HttpError

          public HttpError(int statusCode,
                           java.lang.String message)

  - ### Method Detail

    - #### getStatusCode

          public int getStatusCode()

      Returns the error status code.

    - #### getMessage

          public java.lang.String getMessage()

      Returns error message.

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.