error handling for next
support more http verb