diff --git a/Sources/Hummingbird/Error/EditedHTTPError.swift b/Sources/Hummingbird/Error/EditedHTTPError.swift index d7c7aa13..71c98dc6 100644 --- a/Sources/Hummingbird/Error/EditedHTTPError.swift +++ b/Sources/Hummingbird/Error/EditedHTTPError.swift @@ -22,12 +22,6 @@ struct EditedHTTPError: HTTPResponseError { (self.originalError as? HTTPResponseError)?.status ?? .internalServerError } - var headers: HTTPFields { - var headers = (originalError as? HTTPResponseError)?.headers ?? [:] - headers.append(contentsOf: self.additionalHeaders) - return headers - } - let additionalHeaders: HTTPFields init(originalError: Error, additionalHeaders: HTTPFields) { diff --git a/Sources/Hummingbird/Error/HTTPErrorResponse.swift b/Sources/Hummingbird/Error/HTTPResponseError.swift similarity index 92% rename from Sources/Hummingbird/Error/HTTPErrorResponse.swift rename to Sources/Hummingbird/Error/HTTPResponseError.swift index 93539f44..d059bf9c 100644 --- a/Sources/Hummingbird/Error/HTTPErrorResponse.swift +++ b/Sources/Hummingbird/Error/HTTPResponseError.swift @@ -22,6 +22,4 @@ import NIOCore public protocol HTTPResponseError: Error, ResponseGenerator { /// status code for the error var status: HTTPResponse.Status { get } - /// any addiitional headers required - var headers: HTTPFields { get } }