fix status ok and success
removed custom message for 3001, better error logging
change sorting order