15 lines
		
	
	
		
			238 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			238 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package status
 | 
						|
 | 
						|
// Error is a thin wrapper around Status that implements the error interface.
 | 
						|
type Error struct {
 | 
						|
	s *Status
 | 
						|
}
 | 
						|
 | 
						|
func (e *Error) Error() string {
 | 
						|
	return e.s.String()
 | 
						|
}
 | 
						|
 | 
						|
func (e *Error) HTTPStatus() *Status {
 | 
						|
	return e.s
 | 
						|
}
 |