Fixed error in HTTP error's handler