diff --git a/Sources/Vapor/Error/Abort.swift b/Sources/Vapor/Error/Abort.swift index 1170d2b12c..0c6967033d 100644 --- a/Sources/Vapor/Error/Abort.swift +++ b/Sources/Vapor/Error/Abort.swift @@ -65,7 +65,7 @@ public struct Abort: AbortError { line: UInt = #line, column: UInt = #column ) { - self.identifier = status.code.description + self.identifier = identifier ?? status.code.description self.headers = headers self.status = status self.reason = reason ?? status.reasonPhrase