WordPress HTTP Error on File upload

I faced the same problem with my WordPress site. It’s some bug in WordPress.
Which version you are using?

I resolved this error by adding a function to my functions.php file in my theme.

function ms_image_editor_default_to_gd( $editors ) {
    $gd_editor="WP_Image_Editor_GD";
    $editors = array_diff( $editors, array( $gd_editor ) );
    array_unshift( $editors, $gd_editor );
    return $editors;
}
add_filter( 'wp_image_editors', 'ms_image_editor_default_to_gd' );

This worked for me, the function will change the current default upload to GD.

Go to the editor in WordPress, find functions.php and add the above code to that file.