mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 04:53:40 +00:00
9 lines
225 B
TypeScript
9 lines
225 B
TypeScript
import { HttpErrorResponse } from '@angular/common/http'
|
|
|
|
export class HttpError {
|
|
constructor(private readonly error: HttpErrorResponse) {}
|
|
|
|
readonly code = this.error.status
|
|
readonly message = this.error.statusText
|
|
}
|