500 and 404 page page added and GlobalSettings override onBadRequest and onError methods.